﻿using System.Runtime.Serialization;

namespace DataTransferObject
{
    [DataContract]
    public enum ObjetPatrimonialDTOState
    {
        [EnumMember]
        FullyOperational,

        [EnumMember]
        PartiallyOperational,
        
        [EnumMember]
        NotOperational
    }

    [DataContract]
    public class ObjetPatrimonialDTO
    {
        [DataMember]
        public int Id { get; set; }

        [DataMember]
        public string Code { get; set; }

        [DataMember]
        public string Label { get; set; }

        [DataMember]
        public int Age { get; set; }
        
        [DataMember]
        public string Town { get; set; }
        
        [DataMember]
        public ObjetPatrimonialDTOState State { get; set; }
    }
}
